import { businessApi } from './api'

export const authService = {
  // 登录
  async login(credentials) {
    return await businessApi.login(credentials)
  },

  // 登出
  async logout() {
    return await businessApi.logout()
  },

  // 验证token
  async verifyToken() {
    return await businessApi.getCurrentUser()
  },

  // 注册
  async register(userData) {
    return await businessApi.register(userData)
  },

  // 忘记密码
  async forgotPassword(email) {
    return await businessApi.forgotPassword(email)
  },

  // 重置密码
  async resetPassword(token, password) {
    return await businessApi.resetPassword(token, password)
  }
} 